1 package jrre.instructionset;
2
3 import jrre.StackFrame;
4
5 public abstract class Instruction {
6
7 protected String name;
8 protected String description;
9
10 protected int length;
11
12 protected Instruction nextInstruction;
13 protected Instruction prevInstruction;
14
15 //public abstract StackFrame execute(StackFrame operandStack);
16 public abstract void execute();
17 public abstract String toString();
18
19 /***
20 * Gets the Length.
21 */
22 public int getLength(){
23 return this.length;
24 }
25
26 /***
27 * Sets the Length.
28 * @param Length The value to set it to.
29 */
30 public void setLength(int length){
31 this.length = length;
32 }
33
34 /***
35 * Gets the NextInstruction.
36 */
37 public Instruction getNextInstruction(){
38 return this.nextInstruction;
39 }
40
41 /***
42 * Sets the NextInstruction.
43 * @param NextInstruction The value to set it to.
44 */
45 public void setNextInstruction(Instruction nextInstruction){
46 this.nextInstruction = nextInstruction;
47 }
48
49 /***
50 * Gets the PrevInstruction.
51 */
52 public Instruction getPrevInstruction(){
53 return this.prevInstruction;
54 }
55
56 /***
57 * Sets the PrevInstruction.
58 * @param PrevInstruction The value to set it to.
59 */
60 public void setPrevInstruction(Instruction prevInstruction){
61 this.prevInstruction = prevInstruction;
62 }
63
64 /***
65 * Gets the Name.
66 */
67 public String getName(){
68 return this.name;
69 }
70
71 /***
72 * Sets the Name.
73 * @param Name The value to set it to.
74 */
75 public void setName(String name){
76 this.name = name;
77 }
78
79 /***
80 * Gets the Description.
81 */
82 public String getDescription(){
83 return this.description;
84 }
85
86 /***
87 * Sets the Description.
88 * @param Description The value to set it to.
89 */
90 public void setDescription(String description){
91 this.description = description;
92 }
93
94 }
This page was automatically generated by Maven